package com.ruoyi.zyt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zyt.mapper.CollegesMapper;
import com.ruoyi.zyt.domain.Colleges;
import com.ruoyi.zyt.service.ICollegesService;

/**
 * 院校数据Service业务层处理
 * 
 * @author zyt
 * @date 2023-11-18
 */
@Service
public class CollegesServiceImpl implements ICollegesService 
{
    @Autowired
    private CollegesMapper collegesMapper;

    /**
     * 查询院校数据
     * 
     * @param collegesId 院校数据主键
     * @return 院校数据
     */
    @Override
    public Colleges selectCollegesByCollegesId(Long collegesId)
    {
        return collegesMapper.selectCollegesByCollegesId(collegesId);
    }

    /**
     * 查询院校数据列表
     * 
     * @param colleges 院校数据
     * @return 院校数据
     */
    @Override
    public List<Colleges> selectCollegesList(Colleges colleges)
    {
        return collegesMapper.selectCollegesList(colleges);
    }
    public List<Colleges> selectSuggestCollegesList(Colleges colleges)
    {
        return collegesMapper.selectSuggestCollegesList(colleges);
    }

    /**
     * 新增院校数据
     * 
     * @param colleges 院校数据
     * @return 结果
     */
    @Override
    public int insertColleges(Colleges colleges)
    {
        return collegesMapper.insertColleges(colleges);
    }

    /**
     * 修改院校数据
     * 
     * @param colleges 院校数据
     * @return 结果
     */
    @Override
    public int updateColleges(Colleges colleges)
    {
        return collegesMapper.updateColleges(colleges);
    }

    /**
     * 批量删除院校数据
     * 
     * @param collegesIds 需要删除的院校数据主键
     * @return 结果
     */
    @Override
    public int deleteCollegesByCollegesIds(Long[] collegesIds)
    {
        return collegesMapper.deleteCollegesByCollegesIds(collegesIds);
    }

    /**
     * 删除院校数据信息
     * 
     * @param collegesId 院校数据主键
     * @return 结果
     */
    @Override
    public int deleteCollegesByCollegesId(Long collegesId)
    {
        return collegesMapper.deleteCollegesByCollegesId(collegesId);
    }
}
